<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	
	<f:view>
		<h:head></h:head>
		<h:body>
			
				<h:form>
				

    <h:outputStylesheet>
        .optionList {
        height: 10px;
        }
 
        .vertical-menu-cell {
        padding: 10px 20px 20px 20px;
        }
    </h:outputStylesheet>
 <rich:panel header="Menu AirPort Web App">
    <h:panelGrid styleClass="vertical-menu-cell" columnClasses="optionList" columns="1" cellspacing="0" cellpadding="0">
        <rich:toolbar height="10px">
            <rich:dropDownMenu rendered="#{loginBean.menuBean.cliente}" mode="ajax">
                <f:facet name="label">
                    <h:panelGroup>
                       
                        <h:outputText value="Cliente" />
                    </h:panelGroup>
                </f:facet>
              
                <rich:menuItem label="Listar Clientes" action="lista-cliente" />
 
            </rich:dropDownMenu>
            
            <rich:dropDownMenu rendered="#{loginBean.menuBean.voo}" mode="ajax">
                <f:facet name="label">
                    <h:panelGroup>
                       
                        <h:outputText value="Voo" />
                    </h:panelGroup>
                </f:facet>
             
                <rich:menuItem label="Listar Voos" action="/voo/lista-voo"/>
 
            </rich:dropDownMenu>
            
            <rich:dropDownMenu rendered="#{loginBean.menuBean.trecho}" mode="ajax">
                <f:facet name="label">
                    <h:panelGroup>
                       
                        <h:outputText value="Trecho" />
                    </h:panelGroup>
                </f:facet>
              
                <rich:menuItem label="Listar Trechos" action="/trecho/lista-trecho" />
               
            </rich:dropDownMenu>
            
              <rich:dropDownMenu rendered="#{loginBean.menuBean.compra}" mode="ajax">
                <f:facet name="label">
                    <h:panelGroup>
                       
                        <h:outputText value="Compra de Passagem" />
                    </h:panelGroup>
                </f:facet>
              
                <rich:menuItem label="Comprar" action="/compraPassagens/carrinho-compras" />
 
            </rich:dropDownMenu>
            
             <rich:dropDownMenu rendered="#{loginBean.menuBean.reserva}" mode="ajax">
                <f:facet name="label">
                    <h:panelGroup>
                       
                        <h:outputText value="Gerenciamento Reserva" />
                    </h:panelGroup>
                </f:facet>
              
                <rich:menuItem label="Realizar Reserva" action="/reserva/lista-reserva" />
 
            </rich:dropDownMenu>
            
             <rich:dropDownMenu mode="ajax">
                <f:facet name="label">
                    <h:panelGroup>
                        <h:outputText value="Log Off" />
                    </h:panelGroup>
                </f:facet>
              
                <rich:menuItem label="Log Off" action="#{loginBean.menuBean.logOff()}"/>
 
            </rich:dropDownMenu>
            
        </rich:toolbar>
</h:panelGrid>
	</rich:panel>
				</h:form>
		
		</h:body>
	</f:view>
</ui:composition>